package com.pt25.service.sys.interfaces.assembler;

import com.pt25.service.sys.domain.codegen.ddo.Codegen;
import com.pt25.service.sys.interfaces.vo.codegen.CodegenVo;

public interface CodegenAssembler {
   static Codegen codegenVO2Codegen(CodegenVo codegenVO) {
        return Codegen.builder()
                .url(codegenVO.getUrl())
                .user(codegenVO.getUser())
                .password(codegenVO.getPassword())
                .tableName(codegenVO.getTableName())
                .basePackage(codegenVO.getBasePackage())
                .modelName(codegenVO.getModelName())
                .service(codegenVO.getService())
                .domain(codegenVO.getDomain()).build();
    }
}
